* xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Mar 2011 08:10:11 +0000 (01:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Mar 2011 08:10:11 +0000 (01:10 -0700)
commit5b12b7eb2360d74e90e5705ff25783a9aa037fd0
treeced3af3cbd55886630a01465c5ba377078f2665a
parent525fc6b82dba1399622253e8420312d9de76d9f3
* xdisp.c (message_log_check_duplicate): Return unsigned long, not int.

This is less likely to overflow, and avoids undefined behavior if
overflow does occur.  All callers changed.  Use strtoul to scan
for the unsigned long integer.
src/ChangeLog
src/xdisp.c